package com.huiminpay.merchant.converter;

import com.huiminpay.merchant.dto.MerchantDTO;
import com.huiminpay.merchant.vo.MerchantRegisterVo;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: 有点儿意思
 * @Description:
 */
@Mapper
public interface MerchantRegisterConvert {

    MerchantRegisterConvert INSTANCE = Mappers.getMapper(MerchantRegisterConvert.class);

    /**
     * vo转成dto
     * @param merchantRegisterVo 封装vo对象
     * @return dto对象
     */
    MerchantDTO vo2Dto(MerchantRegisterVo merchantRegisterVo);

    /**
     * dto转成vo
     * @param merchantDTO 封装dto对象
     * @return vo对象
     */
    MerchantRegisterVo dto2Vo(MerchantDTO merchantDTO);
}
